package com.chen.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

//@Aspect
//@Component
@Slf4j
public class LoginLogAspect {
    @Around("execution(* com.chen.controller.LoginController.login(..))")
    public Object logLogin(ProceedingJoinPoint joinPoint){
        log.info("记录登录日志");
        return null;
    }
}
